<template>
  <el-container>
    <el-header>header</el-header>
    <el-main>
        <h1>sign in</h1>
        <el-card class="box-card">
        <div slot="header" class="clearfix">
          <span>卡片名称</span>
          <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>
        </div>
        <div class="login-box">
          <div class="login-tab">
            <div class="tab-trigger-box">
              <span class="trigger">Sign In</span>
              <span class="trigger">Sign Up</span>
            </div>
            <div class="tab-content-box">
              <div class="tab-content"></div>
              <div class="tab-content"></div>
            </div>
          </div>
        </div>
      </el-card>
    </el-main>
    <el-footer>footer</el-footer>
  </el-container>
</template>
<style>
  .login-box{
    width:600px;
    height:400px;
    margin:20px auto;
    padding:10px;
    border:1px solid #d3d3d3;
    box-shadow: 2px 2px 10px #ccc, -2px -2px 10px #ccc;
  }
  .login-tab .tab-trigger-box{
    display: -webkit-box;
    display: flex;
    display:flex-box;
    border:2px solid #409eff;
  }
  .login-tab .trigger{
    flex:1;
    text-align: center;
    line-height: 40px;
    cursor:pointer;
    background-color: #F2F6FC;
  }
  .login-tab .tab-content{

  }
</style>
<script>
  export default {
    data() {
      return {
        activeName: 'second'
      };
    },
    methods: {
      handleClick(tab, event) {
        console.log(tab, event);
      }
    }
  }
</script>

